package club.banyuan;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;

public class Main {

//  public static final Object LOCK = new Object();

  public static void main(String[] args) {

    Lock lock = new ReentrantLock();
    Condition condition = lock.newCondition();

    LetterThread t1 = new LetterThread(lock,condition);
    NumThread t2 = new NumThread(lock , condition);
    t2.start();
    t1.start();
  }
}
